import request from '../utils/request';

export const getQuestions = query => {
    return request({
        //url: '/question/all',
        url: './questionTable.json',
        method: 'get',
        params: query
    });
};
export const getExam = query => {
    return request({
        //url: '/exam/problem',
        url: './exam.json',
        method: 'get',
        params: query
    });
};
export const getAdvice = query => {
    return request({
        //url: '/advice/all',
        url: './advise.json',
        method: 'get',
        params: query
    });
};
export const getVideo = query => {
    return request({
        //url: '/video/all',
        url: './video.json',
        method: 'get',
        params: query
    });
};